#pragma once

#include <QWidget>
#include "networkmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MedicineUpdateWindow; }
QT_END_NAMESPACE

class MedicineUpdateWindow : public QWidget
{
    Q_OBJECT

public:
    MedicineUpdateWindow(QWidget *parent = nullptr);
    ~MedicineUpdateWindow();

private slots:
    void on_updateButton_clicked();
    void on_resetButton_clicked();
    void handleUpdateMedicineResponse(const QJsonObject &response);

private:
    Ui::MedicineUpdateWindow *medicineupdatewindowUi;
    NetworkManager *networkManager;
};
